#pragma once
#include "processbar.h"
#include <iostream>
#include <random>
#include <chrono>
#include <iomanip> 
#include <atomic>
 #include <unistd.h>
 
// 下载总量
extern const  int download_cap;
extern const  int cur_speed;



int NetSpeed();
void download(int total_cap  = download_cap);